import random
import sys
print('***************************************')
print('**************人生重开模拟器**************')
print('***************************************')
while True:
    face = int(input('请输入颜值(1-10) '))
    if(face > 10 or face < 1):
        print('颜值设置有误,请重试 ')
        continue
    strong = int(input('请输入体质(1-10) '))
    if (strong > 10 or strong < 1):
        print('体质设置有误,请重试 ')
        continue
    iq = int(input('请输入智力(1-10) '))
    if (iq > 10 or iq < 1):
        print('智力设置有误,请重试 ')
        continue
    home = int(input('请输入家境(1-10) '))
    if (home > 10 or home < 1):
        print('家境设置有误,请重试 ')
        continue
    if face + strong + iq + home <= 20:
        print('初始化完毕')
        break
    else:
        print('数值初始化超过20,请重新输入')
        continue

# random.randint(beign, end)生成[begin, end]随机数
point = random.randint(1, 2)
if point == 1:
    gender = 'boy'
    print('你是男孩')
else:
    gender = 'girl'
    print('你是女孩')
    sys.exit(0)

